export const roleObj = {
  methods: {
    checkPoint (key) {
      if (
        this.$store.state.user.userInfo.roles &&
        this.$store.state.user.userInfo.roles.points
      ) {
        return this.$store.state.user.userInfo.roles.points.includes(key)
      }

      return false
    }
  }
}
